﻿using System;
using IQIGame.Onigao.GameAOT;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay
{
    [CreateAssetMenu(fileName = "BattleHUDAsset", menuName = "Create Scriptable Config/BattleHUDConfigAsset")]
    public class BattleHUDConfig : ScriptableObject
    {
        public BattleHUDSetting[] NumberSetting;
        public HUDNumberSetting defaultSetting;

        public BattleHUDSpriteSetting[] NumberSpriteSetting;
        public string defaultNumSprite = "Red";

        public float numDuration = 1.5f;
        public float numScaleBase = 1.0f;

        public float numTimeSpace = 0.1f;
    }

    [Serializable]
    public class BattleHUDSetting
    {
        public EHUDNumberRenderType hudType;
        public HUDNumberSetting setting;
    }
    
    [Serializable]
    public class BattleHUDSpriteSetting
    {
        public EHUDNumberRenderType hudType;
        public string numSprite;
    }
}